package mysql

import "gorm.io/gorm"

type User struct {
	gorm.Model
	Mobile   string `gorm:"type:varchar(11);not null"`
	Password string `gorm:"type:char(32);not null"`
}

type Product struct {
	gorm.Model
	Title  string  `gorm:"type:varchar(30);not null"`
	Image  string  `gorm:"type:varchar(500);not null"`
	Price  float64 `gorm:"type:decimal(10,2);not null"`
	Stock  int64   `gorm:"type:int(11);not null"`
	UserId int64   `gorm:"type:int(11);not null"`
}
